package org.dftproject.gedcom.core;

public abstract class AbstractGedcom implements IGedcom {

	public GedcomPerson getPerson(String id) {
		Line record = getRecord(id);
		if (record != null && "INDI".equals(record.getTag()))
			return new GedcomPerson(this, id, record);
		return null;
	}

	public Family getFamily(String id) {
		Line record = getRecord(id);
		if (record != null && "FAM".equals(record.getTag()))
			return new Family(this, record);
		return null;
	}

}
